ReadLinkSpec
TheReadLinkSpec
method initializes this empty link specification by reading its data from the specified focused storage unit.
void ReadLinkSpec (in ODStorageUnit su);
su
- A reference to the storage unit whose focused value contains the link-specification data.
DISCUSSION
If your part is a destination part, you create an empty link specification by calling the draft'sCreateLinkSpec
method, passing null for the source part and data parameters. Then, call the empty link specification'sReadLinkSpec
method to initialize the link specification from data in the content storage unit of the clipboard or drag-and-drop object. The storage unit should be focused on the value of typekODLinkSpec
in thekODPropLinkSpec
property.EXCEPTIONS
kODErrCorruptLinkSpecValue
- The focused storage unit contains an invalid link- specification value.
kODErrNoLinkSpecValue
- The focused property does not contain a link- specification value.
kODErrOutOfMemory
- There is not enough memory to read the link specification.
kODErrUnknownLinkSpecVersion
- The link-specification version is not recognized.
SEE ALSO
TheODDraft::CreateLinkSpec method (page 166).
TheODLinkSpec::WriteLinkSpec
method (page 393).
"Creating a Link at the Destination" on page 380 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help